package office.action.sale.wrapper;

import java.util.Date;

import office.bo.sale.impl.SaleChance;

import platform.common.bo.IdentifiableObj;

public class SaleChanceWrapper {
	private String id;
	private String chanceName;   //机会名称
	private String customerName; //客户名称
	private String chanceSource; //机会来源
	private Date createDate;     //创建日期
	private Date chanceDate;     //机会日期
	private String principal;    //责任人
	private String mark;         //备注
	
	/**
	 * 从bo拷贝属性
	 * @param baseBO
	 */
	public void copyToWrapper(IdentifiableObj baseBO){
		SaleChance bo = (SaleChance)baseBO;
		this.id = bo.getId().toString();
		this.chanceName = bo.getChanceName();
		this.customerName = bo.getCustomerName();
		this.chanceSource = bo.getChanceSource();
		this.createDate = bo.getCreateDate();
		this.chanceDate = bo.getChanceDate();
		this.principal = bo.getPrincipal();
		this.mark = bo.getMark();
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	public String getChanceName() {
		return chanceName;
	}
	public void setChanceName(String chanceName) {
		this.chanceName = chanceName;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getChanceSource() {
		return chanceSource;
	}
	public void setChanceSource(String chanceSource) {
		this.chanceSource = chanceSource;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getChanceDate() {
		return chanceDate;
	}
	public void setChanceDate(Date chanceDate) {
		this.chanceDate = chanceDate;
	}
	public String getPrincipal() {
		return principal;
	}
	public void setPrincipal(String principal) {
		this.principal = principal;
	}
	public String getMark() {
		return mark;
	}
	public void setMark(String mark) {
		this.mark = mark;
	}
}
